import { onShareAppMessage } from '../../utils/util'
Page({
  data: {
    url: '',
    webData: null
  },
  loadSuccess(e) {
    console.log('loadSuccess')
    console.log(e)
  },
  loadError(e) {
    console.log('loadError')
    console.log(e)
  },
  longtap: function (e) {
    console.log('longtap')
  },
  bindmessage: function (e) {
    console.log(e)
    this.setData({
      webData: e.detail.data[0]
    })
  },
  onLoad: function (options) {
    const url = decodeURIComponent(options.url)
    console.log(url)
    this.setData({
      url: url
    })
  },
  onShareAppMessage
})
